#ifndef LAYERVIEWERWIDGET_H
#define LAYERVIEWERWIDGET_H

#include <qgl.h>
//#include <QtOpenGL/QtOpenGL>
#include "Layer.hpp"

class LayerViewerWidget : public QGLWidget
{
    Q_OBJECT
public:
        //----------------------------------------------------------------------
        // Constructeur
        //----------------------------------------------------------------------
        LayerViewerWidget( ImageAnalysis::Layer* layer );

        //----------------------------------------------------------------------
        // Destructeur
        //----------------------------------------------------------------------
        virtual ~LayerViewerWidget();

public slots:

protected:

        //----------------------------------------------------------------------
        //
        //----------------------------------------------------------------------
        void initializeGL();

        //----------------------------------------------------------------------
        //
        //----------------------------------------------------------------------
        void resizeGL( int width, int height );

        //----------------------------------------------------------------------
        //
        //----------------------------------------------------------------------
        void paintGL();

        ImageAnalysis::Layer* currentLayer;
};


#endif //LAYERVIEWERWIDGET_H
